//
//  IOTCViewController.m
//  Rotation
//
//  Created by User-04 on 3/26/14.
//  Copyright (c) 2014 IOTrainingCamp. All rights reserved.
//

#import "IOTCViewController.h"

@interface IOTCViewController ()
//@property UIView* rotatingView;
@property NSTimer* timer;
@property (weak, nonatomic) IBOutlet UIView *rotatingView;

@end

@implementation IOTCViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	self.timer = [NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:(@selector(rotate)) userInfo:nil repeats:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void) rotate{
    CATransform3D rotation =  self.rotatingView.layer.transform;
    rotation = CATransform3DRotate(rotation, M_PI/90, 0.0f, 0.0f, 1.0f);
    self.rotatingView.layer.transform = rotation;
    
}



@end
